
import 'package:json_annotation/json_annotation.dart';

part 'task_status_number_model.g.dart';

@JsonSerializable()
class TaskStatusNumberModel {
  final int pausedCount;
  final int myOrderReadyToSubmitOrderCount;
  final int myOrderReadyToApproveCount;
  final int myOrderRejectCount;
  final int myOrderGotMoneyCount;
  final int myOrderFailedCount;
  final int taskReadyToSubmitOrderCount;
  final int taskReadyToPayCount;
  final int taskInprocessCount;
  final int taskWaitToEndCount;
  final int taskCompleteCount;
  final int taskRejectCount;

  TaskStatusNumberModel({
    required this.pausedCount,
    required this.myOrderReadyToSubmitOrderCount,
    required this.myOrderReadyToApproveCount,
    required this.myOrderRejectCount,
    required this.myOrderGotMoneyCount,
    required this.myOrderFailedCount,
    required this.taskReadyToSubmitOrderCount,
    required this.taskReadyToPayCount,
    required this.taskInprocessCount,
    required this.taskWaitToEndCount,
    required this.taskCompleteCount,
    required this.taskRejectCount,
  });

  factory TaskStatusNumberModel.fromJson(Map<String, dynamic> json) =>
      _$TaskStatusNumberModelFromJson(json);

  Map<String, dynamic> toJson() => _$TaskStatusNumberModelToJson(this);
}